﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Validator.Engine;

namespace Landscape.Business.Validators
{
    public class DateAfterTodayValidator : IValidator
    {
        public bool IsValid(object value, IConstraintValidatorContext constraintValidatorContext)
        {
            var selectDate = DateTime.Parse(value.ToString());
            return selectDate.Date > DateTime.Now.Date;
        }
    }
}
